Filter hook 'post_type_labels_{$post_type}'
in WP Core File wp-includes/post.php at line 2127
Description
Filters the labels of a specific post type. The dynamic portion of the hook name, `$post_type`, refers to the post type slug. Possible hook names include: - `post_type_labels_post` - `post_type_labels_page` - `post_type_labels_attachment`
Occurrences
Filename |
Line Number |
wp-includes/post.php |
2127 |
Parameters
Type |
Name |
Description |
object |
$labels |
Object with labels for the post type as member variables. |
PHP Doc
/**
* Filters the labels of a specific post type.
*
* The dynamic portion of the hook name, `$post_type`, refers to
* the post type slug.
*
* Possible hook names include:
*
* - `post_type_labels_post`
* - `post_type_labels_page`
* - `post_type_labels_attachment`
*
* @since 3.5.0
*
* @see get_post_type_labels() for the full list of labels.
*
* @param object $labels Object with labels for the post type as member variables.
*/